package org.opens.factory.lottery;

import cn.hutool.db.PageResult;
import org.opens.entity.LotteryHistory;
import org.opens.entity.LotteryTicket;
import org.opens.entity.vo.WinningInfo;

import java.util.List;
import java.util.Map;

public interface LotteryApi {

    /**
     * 查询的开奖信息
     */
    public LotteryHistory resultQuery(String type, String numOfPeriods);

    /**
     * 查询历史数据
     */
    public PageResult<LotteryHistory> historyQuery(String type, int pageSize, int pageNumber);

    /**
     * 判断是否中奖
     */
    public Map<LotteryTicket, WinningInfo> decideIfWinTheLottery(List<LotteryTicket> lotteryTickets);

}
